package net.topcrazy.base.common;

import java.io.Serializable;

/**
 * 
* 登录验证结果
* @ClassName: LoginResult
* @author notepad
 */
public class LoginResult implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 登录成功与否的状态
	 * true：登录成功
	 * false：登录失败
	 */
	private boolean state = false;
	
	/**
	 * 登录失败时消息
	 */
	private String msg = "";
	
	/**
	 * 错误编码
	 */
	private int errorCode = 0;
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public boolean getState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
}